/**
 * 是否相等
 * @param source
 * @param target
 * @returns {boolean}
 */
import {trim} from "./trim";

function equals(source, target) {
  if (source === target) {
    return true;
  } else if (!source || !target) {
    return false;
  } else {
    return trim(source).toUpperCase() == trim(target).toUpperCase();
  }
}

export {equals}
